Skip to content

feat: add SLSA provenance and attestations to all Docker build workflows#1670

Merged
gugu merged 3 commits intomainfrom
ci/add-provenance-to-workflows
Mar 17, 2026
Merged

feat: add SLSA provenance and attestations to all Docker build workflows#1670
gugu merged 3 commits intomainfrom
ci/add-provenance-to-workflows

Conversation

@gugu
Copy link
Copy Markdown
Contributor

@gugu gugu commented Mar 17, 2026

Enable provenance: true and sbom: true on all image builds, upgrade attest-build-provenance to v2, and add merged manifest attestation for multi-platform bake workflows.

Enable provenance: true and sbom: true on all image builds, upgrade
attest-build-provenance to v2, and add merged manifest attestation
for multi-platform bake workflows.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings March 17, 2026 09:29
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR enhances the project’s Docker image supply-chain security by enabling SLSA provenance and SBOM generation across Docker build workflows, upgrading build provenance attestation to v2, and adding a provenance attestation for merged multi-platform manifests in bake-based workflows.

Changes:

  • Enable sbom: true and provenance: true on Docker build steps across workflows.
  • Upgrade actions/attest-build-provenance from @v1 to @v2 and add required attestations: write permissions.
  • For multi-platform bake workflows, compute the merged manifest digest and attest provenance for the merged manifest.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
.github/workflows/ws-server.yml Adds attestation permissions, enables SBOM/provenance on build, and attests build provenance using attest-build-provenance@v2.
.github/workflows/saas.yml Adds attestation permissions, enables SBOM/provenance on build, and attests build provenance using attest-build-provenance@v2.
.github/workflows/quay.yml Enables build provenance for bake, upgrades attestation to v2, and adds merged manifest provenance attestation (plus job permissions).
.github/workflows/build.yml Enables build provenance for bake, upgrades attestation to v2, and adds merged manifest provenance attestation (plus job permissions).
.github/workflows/build-agent.yml Enables build provenance for bake, upgrades attestation to v2, and adds merged manifest provenance attestation (plus job permissions).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +128 to +131
permissions:
id-token: write
contents: read
attestations: write
Comment on lines +121 to +124
permissions:
id-token: write
contents: read
attestations: write
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
gugu and others added 2 commits March 17, 2026 09:50
…late

The --format '{{.Manifest.Digest}}' template doesn't work for OCI image
indexes. Use --raw | sha256sum to reliably compute the digest.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
QEMU is unnecessary since all platform builds run on native runners.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@gugu gugu merged commit 858b0d9 into main Mar 17, 2026
16 of 18 checks passed
@gugu gugu deleted the ci/add-provenance-to-workflows branch March 17, 2026 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants